package com.hyjx.framework.component.customquery;

import java.util.Iterator;
import java.util.List;

/**
 * 页面配置信息
 */
public class PageConfig {
    private List<ListConfig> listConfigList;
    private List<ConditionConfig> conditionConfigList;
    
    public List<ListConfig> getListConfigList() {
        return listConfigList;
    }
    
    @SuppressWarnings("rawtypes")
    public void setListConfigList(List<ListConfig> listConfigList) {
        Iterator i = listConfigList.iterator();
        while (i.hasNext()) {
            ListConfig cc = (ListConfig) i.next();
            if (cc.getColumnName() == null)
                i.remove();
        }
        this.listConfigList = listConfigList;
    }
    
    public List<ConditionConfig> getConditionConfigList() {
        return conditionConfigList;
    }
    
    @SuppressWarnings("rawtypes")
    public void setConditionConfigList(List<ConditionConfig> conditionConfigList) {
        Iterator i = conditionConfigList.iterator();
        while (i.hasNext()) {
            ConditionConfig cc = (ConditionConfig) i.next();
            if (cc.getColumnName() == null)
                i.remove();
        }
        this.conditionConfigList = conditionConfigList;
    }
}
